package com.roc.steelend.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.roc.steelend.pojo.Account;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.sql.Date;
import java.util.HashMap;
import java.util.List;

@Repository
public interface AccountMapper  extends BaseMapper<Account> {

    List<Account> selectAccountData(@Param("now")Integer now,
                                    @Param("size")Integer size,
                                    @Param("way")Integer way,
                                    @Param("payOrTakeWay")Integer payOrTakeWay,
                                    @Param("bigAccountId")Integer bigAccountId,
                                    @Param("smallAccountId")Integer smallAccountId,
                                    @Param("who")String who,
                                    @Param("startTime")Date startTime,
                                    @Param("endTime")Date endTime);


    Integer selectAccountDataCount(
                                    @Param("way")Integer way,
                                    @Param("payOrTakeWay")Integer payOrTakeWay,
                                    @Param("bigAccountId")Integer bigAccountId,
                                    @Param("smallAccountId")Integer smallAccountId,
                                    @Param("who")String who,
                                    @Param("startTime")Date startTime,
                                    @Param("endTime")Date endTime);
//  支出
    BigDecimal showPayRevenueSumThisDayByPay();
//  收入
    BigDecimal showPayRevenueSumThisDayByRevenue();
}
